package com.ruoyi.project.warehouseSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.warehouseSystem.mapper.COutwarehouseMapper;
import com.ruoyi.project.warehouseSystem.domain.COutwarehouse;
import com.ruoyi.project.warehouseSystem.service.ICOutwarehouseService;

/**
 * 出库申请提交Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-07-18
 */
@Service
public class COutwarehouseServiceImpl implements ICOutwarehouseService 
{
    @Autowired
    private COutwarehouseMapper cOutwarehouseMapper;

    /**
     * 查询出库申请提交
     * 
     * @param id 出库申请提交ID
     * @return 出库申请提交
     */
    @Override
    public COutwarehouse selectCOutwarehouseById(Long id)
    {
        return cOutwarehouseMapper.selectCOutwarehouseById(id);
    }

    /**
     * 查询出库申请提交列表
     * 
     * @param cOutwarehouse 出库申请提交
     * @return 出库申请提交
     */
    @Override
    public List<COutwarehouse> selectCOutwarehouseList(COutwarehouse cOutwarehouse)
    {
        return cOutwarehouseMapper.selectCOutwarehouseList(cOutwarehouse);
    }

    /**
     * 新增出库申请提交
     * 
     * @param cOutwarehouse 出库申请提交
     * @return 结果
     */
    @Override
    public int insertCOutwarehouse(COutwarehouse cOutwarehouse)
    {
        return cOutwarehouseMapper.insertCOutwarehouse(cOutwarehouse);
    }

    /**
     * 修改出库申请提交
     * 
     * @param cOutwarehouse 出库申请提交
     * @return 结果
     */
    @Override
    public int updateCOutwarehouse(COutwarehouse cOutwarehouse)
    {
        return cOutwarehouseMapper.updateCOutwarehouse(cOutwarehouse);
    }

    /**
     * 批量删除出库申请提交
     * 
     * @param ids 需要删除的出库申请提交ID
     * @return 结果
     */
    @Override
    public int deleteCOutwarehouseByIds(Long[] ids)
    {
        return cOutwarehouseMapper.deleteCOutwarehouseByIds(ids);
    }

    /**
     * 删除出库申请提交信息
     * 
     * @param id 出库申请提交ID
     * @return 结果
     */
    @Override
    public int deleteCOutwarehouseById(Long id)
    {
        return cOutwarehouseMapper.deleteCOutwarehouseById(id);
    }
}
